<!DOCTYPE html> 
<html lang="en"> 
<head> 
    <meta charset="utf-8"> 
    <meta name="viewport" content="width=device-width, initial-scale=1"> 
    <title>基本信息</title> 
    <link href="css/base.css" rel="stylesheet">
    <link rel="stylesheet" href="jquery-easyui-1.5.3/themes/bootstrap/easyui.css">
    <link href="jquery-easyui-1.5.3/themes/icon.css" rel="stylesheet">
    <link href="css/basic_info.css" rel="stylesheet">
    <link rel="stylesheet" href="css/xk.css">
    <script type="text/javascript" src="font_jjkmvgsdpk/iconfont.js"></script>
    <link rel="stylesheet" href="font_jjkmvgsdpk/iconfont.css">
    <link href="css/process.css" rel="stylesheet">
</head> 
<body>
 <div class="container">
  <div class="xk_submit" style="height: 24px;background-color: #eeeeee;text-align: center;">
    <button class="easyui-linkbutton" type="button" id="jbxx_cancel" iconCls="icon-cancel" style="height: 24px;margin-left: 5px;">取消</button> 
    <button class="easyui-linkbutton" type="button" id="jzxxfy" iconCls="icon-large-clipart" style="height: 24px;margin-left: 5px;">警综信息复用</button>
    <button class="easyui-linkbutton" type="button" iconCls="icon-save" style="height: 24px;margin-left: 5px;">保存</button> 
  </div>
		<div class="content">
			<form>
		      	<div class="column"><span class="current">案件信息</span></div>
		      	<table class="xk_table">
                    <tr>
                        <td class="xk_label">案(事)件受理号<font>*</font></td>
                        <td class="td_input"><input name="receptionNo" type="text" class="xk_input"></td>
                        <td class="xk_label">案件编号<font>*</font></td>
                        <td class="td_input"><input name="caseNo" type="text" class="xk_input"></td>
                        <td class="xk_label">案件类别<font>*</font></td>
                        <td class="td_input"><input name="caseType" type="text" id="ajlb_val" key="" readonly="readonly" class="xk_input">
                          <svg class="icon" aria-hidden="true" id="ajlb">
                            <use xlink:href="#icon-shujuzidian"></use>
                          </svg>
                        </td>
                    </tr>
                     <tr>
                        <td class="xk_label">发案区划<font>*</font></td>
                        <td class="td_input"><input name="sceneRegionalism" type="text" id="faqh_val" key="" readonly="readonly" class="xk_input">
                          <svg class="icon" aria-hidden="true" id="faqh">
                            <use xlink:href="#icon-shujuzidian"></use>
                          </svg>
                        </td>
                        <td class="xk_label">是否命案<font>*</font></td>
                        <td class="td_input">
                            <select class="xk_select" name="reserver1">
                                <option value="1">否</option>
                                <option value="2">是</option>
                            </select>
                        </td>
                        <td class="xk_label">是否刑案<font>*</font></td>
                        <td class="td_input">
                             <select class="xk_select">
                                <option value="1">否</option>
                                <option value="2">是</option>
                            </select>
                        </td>
                    </tr>
                     <tr>
                        <td class="xk_label">发案时间<font>*</font></td>
                        <td class="td_input"><input type="text" class="xk_input" name=""></td>
                        <td class="xk_label">破案时间<font>*</font></td>
                        <td class="td_input"><input type="text" class="xk_input" name=""></td>
                        <td class="xk_label">经度<font>*</font></td>
                        <td class="td_input"><input type="text" class="xk_input" name=""></td>
                    </tr>
                    <tr>
                        <td class="xk_label">纬度<font>*</font></td>
                        <td class="td_input"><input type="text" class="xk_input" name=""></td>
                        <td colspan="4"></td>
                    </tr>
                </table>
                <div class="column"><span class="current">接勘信息</span></div>
                <table class="xk_table">
                     <tr>
                        <td class="xk_label">指派/报告单位<font>*</font></td>
                        <td class="td_input"><input type="text" class="xk_input" name=""></td>
                        <td class="xk_label">接勘时间<font>*</font></td>
                        <td class="td_input"><input type="text" class="xk_input" name=""></td>
                        <td class="xk_label">接警人<font>*</font></td>
                        <td class="td_input"><input type="text" class="xk_input" name=""></td>
                    </tr>
                     <tr>
                        <td class="xk_label">指派方式<font>*</font></td>
                        <td class="td_input">
                            <input type="checkbox"><span>指派</span>
                            <input type="checkbox"><span>报告</span>
                        </td>
                        <td class="xk_label">出警时间<font>*</font></td>
                        <td class="td_input"><input type="text" class="xk_input" name=""></td>
                        <td class="xk_label">勘验时间<font>*</font></td>
                        <td class="td_input"><input type="text" class="xk_input" name=""></td>
                    </tr>
                     <tr>
                        <td class="xk_label">勘验地点<font>*</font></td>
                        <td class="td_input"><input type="text" class="xk_input" name=""></td>
                        <td colspan="4"></td>
                    </tr>
                    <tr>
                        <td class="xk_label_textarea">勘验事由<font>*</font></td>
                        <td colspan="5"><textarea type="text" class="xk_input_textarea" name=""></textarea></td>
                    </tr>
                    <tr>
                        <td class="xk_label_textarea02">案件发现过程<font>*</font></td>
                        <td colspan="5"><textarea type="text" class="xk_input_textarea02" name=""></textarea></td>
                    </tr>
                </table>
                <div class="column"><span class="current">现场信息</span></div>
                <table class="xk_table">
                     <tr>
                        <td class="xk_label">保护人: 姓名<font>*</font></td>
                        <td class="td_input"><input type="text" class="xk_input" name=""></td>
                        <td class="xk_label">保护人: 单位<font>*</font></td>
                        <td class="td_input"><input type="text" class="xk_input" name=""></td>
                        <td class="xk_label">保护人: 职务<font>*</font></td>
                        <td class="td_input"><input type="text" class="xk_input" name=""></td>
                    </tr>
                    <tr>
                        <td class="xk_label">保护措施<font>*</font></td>
                        <td colspan="5">
                            <input type="checkbox" class="easyui-checkbox" name=""><span>设立警戒带,划定禁行区域</span>
                            <input type="checkbox" class="easyui-checkbox" name="" checked="checked"><span>专人看护现场,防止他人进去</span>
                            <input type="checkbox" class="easyui-checkbox" name=""><span>被害人自行保护</span>
                            <input type="checkbox" class="easyui-checkbox" name=""><span>其他措施</span>
                            <input type="text" class="xk_input02" name="">
                        </td>
                     </tr>
                     <tr>
                        <td class="xk_label">保护时间<font>*</font></td>
                        <td><input type="text" class="xk_input" name=""></td>
                        <td class="xk_label">现场物品翻动程度<font>*</font></td>
                        <td class="td_input">
                             <select class="xk_select">
                               <option value="1">未翻动</option>
                               <option value="2">复原</option>
                               <option value="3">不明显</option>
                               <option value="4" selected="selected">一般</option>
                               <option value="5">乱</option>
                               <option value="5">其他</option>
                            </select>
                        </td>
                        <td colspan="2"></td>

                    </tr>
                    <tr>
                      <td class="xk_label">现场条件<font>*</font></td>
                      <td class="td_input" colspan="5" id="xctj_td">
                            <input type="radio" name="xctj_radio" value="1"><span>原始现场</span>
                            <input type="radio" name="xctj_radio" value="2"><span>变动现场</span>
                            <span id="BDYYTD" style="display: none">
                            （<input type='checkbox' class='easyui-checkbox' name='xctj_checkbox'><span>主事进入</span>
                                <input type='checkbox' class='easyui-checkbox' name='xctj_checkbox'><span>报案人进入</span>
                                <input type='checkbox' class='easyui-checkbox' name='xctj_checkbox'><span>其他</span>
                                <input type='text' class='xk_input03' id='BDYYDESC'>
                             ）</span>
                      </td>
                    </tr>
                    <tr>
                      <td class="xk_label">天气状况<font>*</font></td>
                      <td class="td_input">
                        <input type="checkbox" class="easyui-checkbox" name=""><span>阴</span>
                        <input type="checkbox" class="easyui-checkbox" name=""><span>晴</span>
                        <input type="checkbox" class="easyui-checkbox" name=""><span>风</span>
                        <input type="checkbox" class="easyui-checkbox" name=""><span>雪</span>
                        <input type="checkbox" class="easyui-checkbox" name=""><span>雾</span>
                        <input type="text" class="xk_input03" name="">
                      </td>
                      <td class="xk_label">温度<font>*</font></td>
                      <td class="td_input"><input type="text" class="xk_input" placeholder="℃" name=""></td>
                      <td class="xk_label">相对湿度<font>*</font></td>
                      <td class="td_input"><input type="text" class="xk_input" placeholder="%" name=""></td>
                    </tr>
                    <tr>
                      <td class="xk_label">风向<font>*</font></td>
                      <td class="td_input">
                             <select class="xk_select">
                              <option value="" check="check">请选择</option>
                              <option value="1">东风</option>
                              <option value="2">南风</option>
                              <option value="3">西风</option>
                              <option value="4">北风</option>
                              <option value="5">东南</option>
                              <option value="6">西南</option>
                              <option value="7">西北</option>
                              <option value="8">东北</option>
                              <option value="9">无风</option>
                              <option value="10">其他</option>
                            </select>
                       </td>
                       <td class="xk_label">光照条件<font>*</font></td>
                       <td class="td_input">
                            <input type="checkbox" class="easyui-checkbox" name=""><span>自然光</span>
                            <input type="checkbox" class="easyui-checkbox" name=""><span>灯光</span>
                            <input type="checkbox" class="easyui-checkbox" name=""><span>特种光</span>
                       </td>
                       <td colspan="2"></td>  
                    </tr>
                    <tr>
                       <td class="xk_label">现场指挥人员<font>*</font></td> 
                       <td class="td_input"><input type="text" id="xczhry_val" readonly="readonly" key="" class="xk_input" name="">
                        <svg class="icon" aria-hidden="true" id="xczhry">
                            <use xlink:href="#icon-shujuzidian"></use>
                        </svg>
                       </td>
                       <td class="xk_label">勘验检查人员<font>*</font></td> 
                       <td class="td_input"><input type="text" class="xk_input" id="kyjcry_val" readonly="readonly" key="" name="">
                        <svg class="icon" aria-hidden="true" id="kyjcry">
                            <use xlink:href="#icon-shujuzidian"></use>
                        </svg>
                       </td>
                       <td class="xk_label">其他到达现场人员<font>*</font></td> 
                       <td class="td_input"><input type="text" class="xk_input" name=""></td>
                    </tr>
                    <tr>
                        <td class="xk_label_textarea">现场遗留物<font>*</font></td>
                        <td colspan="5"><textarea type="text" class="xk_input_textarea" name=""></textarea></td>
                    </tr>
                    <tr>
                        <td class="xk_label">现场处置意见<font>*</font></td>
                        <td class="td_input" colspan="5">
                            <input type="radio" name="bl" class="easyui-radiobutton"><span>全部保留</span>
                            <input type="radio" name="bl" class="easyui-radiobutton"><span>局部保留</span>
                            <input type="radio" name="bl" class="easyui-radiobutton"><span>不保留</span>
                            <input type="text" class="xk_input02" name="">
                      </td>
                    </tr>
                    <tr>
                        <td class="xk_label_textarea02">勘验检查情况<font>*</font></td>
                        <td colspan="5"><textarea type="text" class="xk_input_textarea02" name=""></textarea></td>
                    </tr>
                </table>
                <div class="column"><span class="current">人员信息</span></div>
                <table class="xk_table">
                	<tr>
                		<td class="xk_label_L">被害人/报案人<font>*</font></td>
                		<td colspan="5">
                			<div class="forSubmint">
                			    <button class="easyui-linkbutton" id="bhr_edit_btn" type="button" iconCls="icon-edit" style="height: 24px;float: right;">编辑</button>  
                				  <button class="easyui-linkbutton" id="bhr_add_btn" type="button" iconCls="icon-add" style="height: 24px;float: right;margin-right: 4px;">新增</button>
                			</div>
                		</td> 
                	</tr>
                  <tr>
                    <td colspan="6">
                      <table class="xk_table02" id="bhr_table">
                          <tr>
                            <th class="xk_label" style="width: 1.6%;"><input type="radio" value="" name="bhr_radio"></th>
                            <th class="xk_label">姓名</th>
                            <th class="xk_label">年龄</th>
                            <th class="xk_label">性别</th>
                            <th class="xk_label">身份证号</th>
                            <th class="xk_label">联系电话</th>
                            <th class="xk_label">单位</th>
                            <th class="xk_label">现住址详址</th>
                            <th class="xk_label">户籍地详址</th>
                            <th class="xk_label" style="width: 3%;">操作</th>
                          </tr>
                          <tbody id="add_bhr_tr">
                            
                          </tbody>
                      </table>
                    </td>
                  </tr>
                  <tr>
                    <td class="xk_label_L">见证人<font>*</font></td> 
                    <td colspan="5">
                      <button class="easyui-linkbutton" type="button" id="jzr_add_btn" iconCls="icon-add" style="height: 24px;float: right;">新增</button>
                    </td> 
                  </tr>
                  <tr>
                    <td colspan="6">
                      <table class="xk_table02" id="jzr_table">
                          <tr>
                            <th class="xk_label" style="width: 1.6%;">序号</th>
                            <th class="xk_label">姓名</th>
                            <th class="xk_label">性别</th>
                            <th class="xk_label">出生日期</th>
                            <th class="xk_label">单位住址</th>
                            <th class="xk_label" style="width: 1.6%;">操作</th>
                          </tr>
                          <tbody id="add_jzr_tr">
                            
                          </tbody>
                      </table>
                    </td>
                  </tr>
                    <tr>
                        <td class="xk_label_textarea">见证人备注<font>*</font></td>
                        <td colspan="5"><textarea type="text" class="xk_input_textarea" name=""></textarea></td>
                    </tr>
                  </table>
                  <div class="column"><span class="current">物损信息</span></div>
                  <table class="xk_table">  
                  <tr>
                    <td class="xk_label_L">损失物品<font>*</font></td>
                    <td colspan="5">
                      <div class="forSubmint">  
                       <button class="easyui-linkbutton" id="sswp_add_btn" type="button" iconCls="icon-add" style="height:24px;float: right;margin-right: 4px;">新增</button>
                      </div>
                    </td> 
                  </tr>
                  <tr>
                    <td colspan="6">
                      <table class="xk_table02" id="sswp_table">
                          <tr>
                            <th class="xk_label" style="width: 2%;">序号</th>
                            <th class="xk_label">品名</th>
                            <th class="xk_label">厂牌和型号</th>
                            <th class="xk_label">特征描述</th>
                            <th class="xk_label">数量</th>
                            <th class="xk_label">价值/元</th>
                            <th class="xk_label" style="width: 2%;">操作</th>
                          </tr>
                          <tbody id="add_sswp_tr">
                            
                          </tbody>
                      </table>
                    </td>
                  </tr>
                    <tr>
                       <td class="xk_label">录像<font>*</font></td> 
                       <td class="td_input"><input type="text" placeholder="分钟" class="xk_input" name=""></td>
                       <td class="xk_label">录音<font>*</font></td> 
                       <td class="td_input"><input type="text" placeholder="分钟" class="xk_input" name=""></td>
                       <td colspan="2"></td>
                    </tr>
                    <tr>
                       <td class="xk_label">伤亡情况：亡<font>*</font></td> 
                       <td class="td_input"><input type="text" class="xk_input" name=""></td>
                       <td class="xk_label">伤亡情况：伤<font>*</font></td> 
                       <td class="td_input"><input type="text" class="xk_input" name=""></td>
                       <td class="xk_label">损失物品总价值<font>*</font></td> 
                       <td class="td_input"><input type="text" placeholder="元" class="xk_input" name=""></td>
                    </tr>
                </table>
            </form>
		</div>
  </div>
	<!--//新增被害人/报案人弹出框-->
<div id="div_bhr" class="easyui-dialog" closed="true">
 <form id="form_bhr" method="post">
  <table class="xk_table">
      <tr>
        <td class="xk_dialog_label">姓名<font>*</font></td> 
        <td class=""><input type="text" class="xk_dialog_input" name="xm"></td>
        <td class="xk_dialog_label">年龄</td> 
        <td class=""><input type="text" class="xk_dialog_input" name="nl"></td>
      </tr>
      <tr>
        <td class="xk_dialog_label">性别<font>*</font></td> 
        <td class="">
          <select class="xk_dialog_input" id="xb">
            <option value="">请选择</option>
            <option value="1">未知</option>
            <option value="2">男</option>
            <option value="3">女</option>
          </select>
        </td>
        <td class="xk_dialog_label">身份证号</td> 
        <td class=""><input type="text" class="xk_dialog_input" name="sfzh"></td>
      </tr>
      <tr>
        <td class="xk_dialog_label">联系电话</td> 
        <td><input type="text" class="xk_dialog_input" name="lxdh"></td>
        <td class="xk_dialog_label">单位</td> 
        <td><input type="text" class="xk_dialog_input" name="dw"></td>
      </tr>
      <tr>
        <td class="xk_dialog_label">现住址详址<font>*</font></td> 
        <td colspan="3"><input type="text" class="xk_dialog_input02" name="xzzxz"></td>
      </tr>
      <tr>
        <td class="xk_dialog_label">户籍地详址</td> 
        <td colspan="3"><input type="text" class="xk_dialog_input02" name="hjdxz"></td>
      </tr>
  </table>   
 </form>
</div>
  <!--//新增损失物品弹出框-->
<div id="div_sswp" class="easyui-dialog" closed="true">
 <form id="addForm" method="post">
  <table class="xk_table" style="border: 1px solid red;">
      <tr>
        <td class="xk_dialog_label">品名</td> 
        <td class=""><input type="text" class="xk_dialog_input" name=""></td>
        <td class="xk_dialog_label">厂牌和型号<font>*</font></td> 
        <td class=""><input type="text" class="xk_dialog_input" name=""></td>
      </tr>
      <tr>
        <td class="xk_dialog_label">特征描述</td> 
        <td class=""><input type="text" class="xk_dialog_input" name=""></td>
        <td class="xk_dialog_label">数量</td> 
        <td><input type="text" class="xk_dialog_input" name=""></td>
      </tr>
      <tr>
        <td class="xk_dialog_label">价值/元</td> 
        <td><input type="text" class="xk_dialog_input" name=""></td>
        <td colspan="2"></td>
      </tr>
  </table>   
 </form>
</div>
  <!--//新增见证人弹出框-->
<div id="div_jzr" class="easyui-dialog" closed="true">
 <form id="addForm" method="post">
  <table class="xk_table" style="border: 1px solid red;">
      <tr>
        <td class="xk_dialog_label">姓名</td> 
        <td class=""><input type="text" class="xk_dialog_input" name=""></td>
        <td class="xk_dialog_label">性别<font>*</font></td> 
        <td class="">
          <select class="xk_dialog_input">
            <option value="">请选择</option>
            <option value="1">未知</option>
            <option value="2">男</option>
            <option value="3">女</option>
          </select>
        </td>
      </tr>
      <tr>
        <td class="xk_dialog_label">出生日期</td> 
        <td class=""><input type="text" class="xk_dialog_input" name=""></td>
        <td class="xk_dialog_label">单位/住址</td> 
        <td><input type="text" class="xk_dialog_input" name=""></td>
      </tr>
  </table>   
 </form>
</div>
<!-- 案件类别树 -->
<div id="div_ajlb_tree" class="easyui-dialog" closed="true">
 <ul id="ajlb_tree" style="width: 50%;float: left;margin-top: 1px;"></ul>
 <ul style="width: 50%;float: right;margin-top: 4px;" id="ul_ajlb_chanyong">
   <li key="0">常用项</li>
 </ul>
</div>
<!-- 发案区划树 -->
<div id="div_faqh_tree" class="easyui-dialog" closed="true">
 <ul id="faqh_tree" style="width: 50%;float: left;margin-top: 1px;"></ul>
 <ul style="width: 50%;float: right;margin-top: 4px;" id="ul_faqh_chanyong">
   <li key="0">常用项</li>
 </ul>
</div>
<!-- 现场指挥人员树 -->
<div id="div_xczhry_tree" class="easyui-dialog" closed="true">
 <ul id="xczhry_tree" style="width: 50%;float: left;margin-top: 1px;"></ul>
 <ul style="width: 50%;float: right;margin-top: 4px;" id="ul_xczhry_chanyong">
   <li key="0">常用项</li>
 </ul>
</div>
<!-- 勘验检查人员树 -->
<div id="div_kyjcry_tree" class="easyui-dialog" closed="true">
 <div style="width: 20%;float: left;">
    <input type="radio" name="sex" value="1" checked><span>本单位</span>
    <input type="radio" name="sex" value="2"><span>全部人员</span>
   <ul id="kyjcry_tree" style="margin-top: 1px;">
   </ul>
 </div>
 <div style="width: 80%;float: right;">
  <ul style="margin-top: 5px;" id="xckyry_ul">
    <li key="0">常用项：</li>
  </ul>
   <table class="xk_table" id="kyjcry_table" style="margin-top: 7px;">
    <tr>
     <th class="xk_label">姓名</th>
     <th class="xk_label" style='width: 18%;'>勘验职责</th>
     <th class="xk_label" style="text-align: center;">操作</th>
    </tr>
    <tbody id="add_kyjcry_tr">

    </tbody>
   </table>
 </div>
</div>
<!-- 警综信息复用 -->
<div id="div_jzxxfy" class="easyui-dialog" closed="true">
  <table class="xk_table">
   <tr>
    <td class="xk_label11">接警编号<font>*</font></td>
    <td class=""><input type="text" class="xk_dialog_input" name=""></td>
    <td class="xk_label11">案件编号<font>*</font></td>
    <td class=""><input type="text" class="xk_dialog_input" name=""></td>
    <td class="xk_label11">发案区划<font>*</font></td>
    <td class=""><input type="text" class="xk_dialog_input" name=""></td>
   </tr>
    <tr>
    <td class="xk_label11">接警时间<font>*</font></td>
    <td class=""><input type="text" class="xk_dialog_input" name=""></td>
    <td class="xk_label11">案件类别<font>*</font></td>
    <td class=""><input type="text" class="xk_dialog_input" name=""></td>
    <td class="xk_label11">发案时间<font>*</font></td>
    <td class=""><input type="text" class="xk_dialog_input" name=""></td>
   </tr>
    <tr>
    <td class="xk_label11">发案地点<font>*</font></td>
    <td class=""><input type="text" class="xk_dialog_input" name=""></td>
    <td class="xk_label11">接警人<font>*</font></td>
    <td class=""><input type="text" class="xk_dialog_input" name=""></td>
    <td colspan="2">
      <button class="easyui-linkbutton" type="button"  iconCls="icon-search">查询</button>
      <button class="easyui-linkbutton" type="button"  iconCls="icon-clear">清空</button>
    </td>
   </tr>
  </table>
  <br>
  <div class="easyui-panel" id="query-data" style="padding:1px;">
    <table id="dataGrid" ></table>
  </div>
</div>
</body> 
<style type="text/css">
  #ul_ajlb_chanyong li{
    margin-bottom: 5px;
  }
</style>
</html>
    <script type="text/javascript" src="jquery-easyui-1.5.3/jquery.min.js"></script>
    <script type="text/javascript" src="jquery-easyui-1.5.3/jquery.easyui.min.js"></script>
<script type="text/javascript">;
//高度适应
var x = $(".xk_submit").height();
$(".xk_submit").css({"bottom":"0","left":"0","right":"0","position":"fixed"})
$(".content").css("margin-bottom",x);
$('.easyui-tabs1').tabs({
  tabHeight: 36
});
$("input[name='xctj_radio']").change(function(){
   var val=$(this).attr("value");
  if(val=="2"){
      $("#BDYYTD").attr("style","");
    }else if(val=="1"){
      $("#BDYYTD").attr("style","display: none");
      $("input[name='xctj_checkbox']").removeAttr("checked");
      $("#BDYYDESC").val("");
    }
})
var bhr = 0;
$("#bhr_add_btn").click(function(){
  document.getElementById("form_bhr").reset();
  $("#div_bhr").dialog({
     title:"新增被害人/报案人",
     width:"700px",
     height:"240px",
     closed: false,
     buttons:[{
      text:"提交",
      iconCls:"icon-ok",
      handler:function(){
        var xm = $("input[name=xm]").val();
        var nl = $("input[name=nl]").val();
        var xb = $("#xb").val();
        var sfzh = $("input[name=sfzh]").val();
        var lxdh = $("input[name=lxdh]").val();
        var dw = $("input[name=dw]").val();
        var xzzxz = $("input[name=xzzxz]").val();
        var hjdxz = $("input[name=hjdxz]").val();
        var bhr_value = bhr++;
        $("#add_bhr_tr").append("<tr class='bhr_' id='"+xm+"'>"+
                            "<th class='xk_label02' style='width:1.6%;'><input type='radio' name='bhr_radio' value="+bhr_value+"></th>"+
                            "<th class='xk_label02'>"+xm+"</th>"+
                            "<th class='xk_label02'>"+nl+"</th>"+
                            "<th class='xk_label02'>"+xb+"</th>"+
                            "<th class='xk_label02'>"+sfzh+"</th>"+
                            "<th class='xk_label02'>"+lxdh+"</th>"+
                            "<th class='xk_label02'>"+dw+"</th>"+
                            "<th class='xk_label02'>"+xzzxz+"</th>"+
                            "<th class='xk_label02'>"+hjdxz+"</th>"+
                            "<th class='xk_label02' style='width: 3%;text-align: center;'>"+
                             "<button type='button' class='easyui-linkbutton' onclick='bhr_tr_del(this)' iconCls='icon-cancel'>删除</button></th>"+
                          "</tr>");
        $.parser.parse("#bhr_table");
        $("#div_bhr").dialog("close");
      }
     },{
      text:"重置",
      iconCls:"icon-redo",
      handler:function(){

      }
     },{
      text:"取消",
      iconCls:"icon-cancel",
      handler:function(){
        $("#div_bhr").dialog("close");
      }
     }
     ],
  });
  $('#div_bhr').dialog('open'); //打开添加对话框
$('#div_bhr').window('center');//使Dialog居中显示
});
$("#bhr_edit_btn").click(function(){
  var val = $("input[name=bhr_radio]:checked").val();
  if(val != null && val.length != 0){
     $("#div_bhr").dialog({
     title:"编辑被害人/报案人",
     width:"700px",
     height:"240px",
     closed: false,
     buttons:[{
      text:"提交",
      iconCls:"icon-ok",
      handler:function(){
        $("#div_bhr").dialog("close");
      }
     },{
      text:"重置",
      iconCls:"icon-redo",
      handler:function(){

      }
     },{
      text:"取消",
      iconCls:"icon-cancel",
      handler:function(){
        $("#div_bhr").dialog("close");
      }
     }
     ],
  });
    $('#div_bhr').dialog('open'); //打开添加对话框
   $('#div_bhr').window('center');//使Dialog居中显示  
  $("#div_bhr").panel({top:$(document).scrollTop() + ($(window).height()-250) * 0.5});
  }else{
    $.messager.alert('提示','请选择要删除的行','error');  
  }
});
//删除一行被害人/报案人
function bhr_tr_del(obj){
   obj.parentNode.parentNode.remove();
}
var sswp = 0;
$("#sswp_add_btn").click(function(){
  var sswp_tr_num = ++sswp;
  $("#add_sswp_tr").append("<tr id='"+sswp_tr_num+"'>"+
                            "<th class='' style='width: 2%;'><input type='text' class='xk_input04' value='"+sswp_tr_num+"'></th>"+
                            "<th class=''><input type='text' class='xk_input04' name=''></th>"+
                            "<th class=''><input type='text' class='xk_input04' name=''></th>"+
                            "<th class=''><input type='text' class='xk_input04' name=''></th>"+
                            "<th class=''><input type='text' class='xk_input04' name=''></th>"+
                            "<th class=''><input type='text' class='xk_input04' name=''></th>"+
                            "<th class='' style='width: 2%;text-align:center;'>"+
                              "<button type='button' class='easyui-linkbutton' onclick='sswp_tr_del(this)' iconCls='icon-cancel'>删除</button>"+
                            "</th>"+
                          "</tr>");
        $.parser.parse("#sswp_table");
});
//删除一行损失物品
function sswp_tr_del(obj){
  //控制序号
  var count = $("#sswp_table").find("tr").length-1;
  //得到当前所在行
  var rows = obj.parentNode.parentNode.rowIndex;
  obj.parentNode.parentNode.remove();
  sswp--;
  if(rows <= count){
    for(var i = rows;i<=count;i++){
      var j = i-1;
      var val =$("#sswp_table tr:gt("+j+") th:eq(0)").find("input").first().val();
      var cou = val - 1;
      $("#sswp_table tr:gt("+j+") th:eq(0)").find("input").first().val(cou);
    }
  }
}
var jzr = 0;
$("#jzr_add_btn").click(function(){
  var jzr_tr_num = ++jzr;
  $("#add_jzr_tr").append("<tr id='"+jzr_tr_num+"'>"+
                            "<th class='' style='width: 1.6%;'><input type='text' class='xk_input04' value='"+jzr_tr_num+"'></th>"+
                            "<th class=''><input type='text' class='xk_input04' name=''></th>"+
                            "<th class=''>"+
                              "<select class='xk_input04'>"+
                                "<option value=''>请选择</option>"+
                                "<option value='1'>未知</option>"+
                                "<option value='2'>男</option>"+
                                "<option value='3'>女</option>"+
                              "</select>"+
                            "</th>"+
                            "<th class=''><input type='text' class='xk_input04' name=''></th>"+
                            "<th class=''><input type='text' class='xk_input04' name=''></th>"+
                            "<th class='' style='width: 1.6%;text-align:center;'>"+
                              "<button type='button' class='easyui-linkbutton' onclick='jzr_tr_del(this)' iconCls='icon-cancel'>删除</button>"+
                            "</th>"+
                          "</tr>");
        $.parser.parse("#jzr_table");
});
//删除一行见证人
function jzr_tr_del(obj){
  //控制序号
  var count = $("#jzr_table").find("tr").length-1;
  //得到当前所在行
  var rows = obj.parentNode.parentNode.rowIndex;
  obj.parentNode.parentNode.remove();
  jzr--;
  if(rows <= count){
    for(var i = rows;i<=count;i++){
      var j = i-1;
      var val =$("#jzr_table tr:gt("+j+") th:eq(0)").find("input").first().val();
      var cou = val - 1;
      $("#jzr_table tr:gt("+j+") th:eq(0)").find("input").first().val(cou);
    }
  }
}
var ajlb_val;
$("#ajlb").click(function(){
 $("#div_ajlb_tree").dialog({
  title:"案件类别单选字典",
  width:"700px",
  height:"400px",
  closed: false,
  buttons:[
  {
  text:"选择空值",
  iconCls:"icon-redo",
  handler:function(){
   $("#ajlb_val").val("");
   $("#div_ajlb_tree").dialog("close");
  }
  },{
  text:"设为常用",
  iconCls:"icon-save",
  handler:function(){
    if(ajlb_node != null && ajlb_node.length != 0){
      var li_num = $("#ul_ajlb_chanyong li").length
      var lis = "";
      for(var i = 0;i<li_num;i++){
        lis += $("#ul_ajlb_chanyong li:eq("+i+")").attr("key");
      }
      var ajlb_Id = ajlb_id.toString();
       if(lis.indexOf(ajlb_Id) < 0){
       $("#ul_ajlb_chanyong").append("<li key='"+ajlb_id+"' ondblclick='ajlb_changyong_val(this)'><button class='easyui-linkbutton' onclick='ajlb_changyong_del(this)' type='button' iconCls='icon-cancel'></button>"+
        "<a href='javascript:;'>"+ajlb_node+"</a></li>");
        $.parser.parse("#ul_ajlb_chanyong");
     }
    }
  }
  }
  ],
 });
 $('#div_ajlb_tree').dialog('open'); //打开添加对话框
$('#div_ajlb_tree').window('center');//使Dialog居中显示
});
//案件类别树
var ajlb_node;
var ajlb_id;
$("#ajlb_tree").tree({
  url:'json/ajlb_tree.json',
  method:'get',
  onLoadSuccess:function(){  
   $("#ajlb_tree").tree("collapseAll");  
  },
  onDblClick: function(node){
  if($('#ajlb_tree').tree('isLeaf',node.target)){
     $("#ajlb_val").val(node.text);
     $("#ajlb_val").attr("key",node.id);
     $("#div_ajlb_tree").dialog("close");
  }
 },
 onClick: function(node){
   if($('#ajlb_tree').tree('isLeaf',node.target)){
      ajlb_node = node.text;
      ajlb_id = node.id;
  }
 }
});
//删除案件类别常用项
function ajlb_changyong_del(obj){
 $.messager.confirm("操作提示","确定要删除该常用项吗？",function (data){
  if(data){
   obj.parentNode.remove();
  }
 });
}
//给案件类别框赋选定常用值
function ajlb_changyong_val(obj){
 $("#ajlb_val").val(obj.innerText);
 $("#ajlb_val").attr("key",obj.attributes.key.value);
 $("#div_ajlb_tree").dialog("close");
}



var faqh_val;
$("#faqh").click(function(){
 $("#div_faqh_tree").dialog({
  title:"发案区划单选字典",
  width:"700px",
  height:"400px",
  closed: false,
  buttons:[
  {
  text:"选择空值",
  iconCls:"icon-redo",
  handler:function(){
   $("#faqh_val").val("");
   $("#div_faqh_tree").dialog("close");
  }
  },{
  text:"设为常用",
  iconCls:"icon-save",
  handler:function(){
    if(faqh_node != null && faqh_node.length != 0){
      var li_num = $("#ul_faqh_chanyong li").length
      var lis = "";
      for(var i = 0;i<li_num;i++){
        lis += $("#ul_faqh_chanyong li:eq("+i+")").attr("key");
      }
      var faqh_Id = faqh_id.toString();
       if(lis.indexOf(faqh_Id) < 0){
       $("#ul_faqh_chanyong").append("<li key='"+faqh_id+"' ondblclick='faqh_changyong_val(this)'><button class='easyui-linkbutton' onclick='faqh_changyong_del(this)' type='button' iconCls='icon-cancel'></button>"+
        "<a href='javascript:;'>"+faqh_node+"</a></li>");
        $.parser.parse("#ul_faqh_chanyong");
     }
    }
  }
  }
  ],
 });
 $('#div_faqh_tree').dialog('open'); //打开添加对话框
$('#div_faqh_tree').window('center');//使Dialog居中显示
});
//发案区划树
var faqh_node;
var faqh_id;
$("#faqh_tree").tree({
  url:'json/faqh_tree.json',
    method:'get',
  onLoadSuccess:function(){  
   $("#faqh_tree").tree("collapseAll");  
  },
  onDblClick: function(node){
  if($('#faqh_tree').tree('isLeaf',node.target)){
     $("#faqh_val").val(node.text);
     $("#faqh_val").attr("key",node.id);
     $("#div_faqh_tree").dialog("close");
  }
 },
 onClick: function(node){
   if($('#faqh_tree').tree('isLeaf',node.target)){
      faqh_node = node.text;
      faqh_id = node.id;
  }
 }
});
//删除发案区划常用项
function faqh_changyong_del(obj){
 $.messager.confirm("操作提示","确定要删除该常用项吗？",function (data){
  if(data){
   obj.parentNode.remove();
  }
 });
}
//给发案区划框赋选定常用值
function faqh_changyong_val(obj){
 $("#faqh_val").val(obj.innerText);
 $("#faqh_val").attr("key",obj.attributes.key.value);
 $("#div_faqh_tree").dialog("close");
}

var xczhry_val;
$("#xczhry").click(function(){
 $("#div_xczhry_tree").dialog({
  title:"现场指挥人员单选字典",
  width:"700px",
  height:"400px",
  closed: false,
  buttons:[
  {
  text:"选择空值",
  iconCls:"icon-redo",
  handler:function(){
   $("#xczhry_val").val("");
   $("#div_xczhry_tree").dialog("close");
  }
  },{
  text:"设为常用",
  iconCls:"icon-save",
  handler:function(){
    if(xczhry_node != null && xczhry_node.length != 0){
      var li_num = $("#ul_xczhry_chanyong li").length
      var lis = "";
      for(var i = 0;i<li_num;i++){
        lis += $("#ul_xczhry_chanyong li:eq("+i+")").attr("key");
      }
      var xczhry_Id = xczhry_id.toString();
       if(lis.indexOf(xczhry_Id) < 0){
       $("#ul_xczhry_chanyong").append("<li key='"+xczhry_id+"' ondblclick='xczhry_changyong_val(this)'><button class='easyui-linkbutton' onclick='xczhry_changyong_del(this)' type='button' iconCls='icon-cancel'></button>"+
        "<a href='javascript:;'>"+xczhry_node+"</a></li>");
        $.parser.parse("#ul_xczhry_chanyong");
     }
    }
  }
  }
  ],
 });
  $('#div_xczhry_tree').dialog('open'); //打开添加对话框
$('#div_xczhry_tree').window('center');//使Dialog居中显示
});
//现场指挥人员树
var xczhry_node;
var xczhry_id;
$("#xczhry_tree").tree({
  url:'json/xczhry_tree.json',
    method:'get',
  onLoadSuccess:function(){  
   $("#xczhry_tree").tree("collapseAll");  
  },
  onDblClick: function(node){
  if($('#xczhry_tree').tree('isLeaf',node.target)){
     $("#xczhry_val").val(node.text);
     $("#xczhry_val").attr("key",node.id);
     $("#div_xczhry_tree").dialog("close");
  }
 },
 onClick: function(node){
   if($('#xczhry_tree').tree('isLeaf',node.target)){
      xczhry_node = node.text;
      xczhry_id = node.id;
  }
 }
});
//删除现场指挥人员常用项
function xczhry_changyong_del(obj){
 $.messager.confirm("操作提示","确定要删除该常用项吗？",function (data){
  if(data){
   obj.parentNode.remove();
  }
 });
}
//给现场指挥人员框赋选定常用值
function xczhry_changyong_val(obj){
 $("#xczhry_val").val(obj.innerText);
 $("#xczhry_val").attr("key",obj.attributes.key.value);
 $("#div_xczhry_tree").dialog("close");
}

var kyjcry_val;
$("#kyjcry").click(function(){
 $("#div_kyjcry_tree").dialog({
  title:"勘验检查人员单选字典",
  width:"700px",
  height:"450px",
  closed: false,
  buttons:[
  {
  text:"提交",
  iconCls:"icon-redo",
  handler:function(){
   var lis = "";
   var ids = "";
   var tr_num = $("#add_kyjcry_tr").find("tr").length; 
   for(var i = 0;i<tr_num;i++){
    ids += $("#add_kyjcry_tr tr:eq("+i+") th:eq(0)").attr("key")+",";
    lis += $("#add_kyjcry_tr tr:eq("+i+") th:eq(0)").text()+",";
   }
   var strlis = lis.substring(0,lis.length-1);
   var strids = ids.substring(0,ids.length-1);
   $("#kyjcry_val").val(strlis);
   $("#kyjcry_val").attr("key",strids);
   $("#div_kyjcry_tree").dialog("close");
  }
  },{
    text:"取消",
    iconCls:"icon-cancel",
    handler:function(){
      $("#div_kyjcry_tree").dialog("close");
    }
  }
  ],
 });
  $('#div_kyjcry_tree').dialog('open'); //打开添加对话框
$('#div_kyjcry_tree').window('center');//使Dialog居中显示
});

//勘验检查人员数据为空时显示内容
var num = $("#add_kyjcry_tr").find("tr").length;
if(num <= 0){
  $("#add_kyjcry_tr").html("<tr><th key='-1' style='text-align:center;color:red;height:27px;' colspan='3'>没有相对应的数据！</th></tr>")
}
//勘验检查人员树
var kyjcry_node;
var kyjcry_id;
$("#kyjcry_tree").tree({
  url:'json/xczhry_tree.json',
    method:'get',
  onLoadSuccess:function(){  
   $("#kyjcry_tree").tree("collapseAll");  
  },
  onDblClick: function(node){
  if($('#kyjcry_tree').tree('isLeaf',node.target)){
     kyjcry_node = node.text; 
     kyjcry_id = node.id;
     var lis="";
     var kyjcry_Id = kyjcry_id.toString(); 
     var tr_num = $("#add_kyjcry_tr").find("tr").length;
      for(var i = 0;i<tr_num;i++){
        lis += $("#add_kyjcry_tr tr:eq("+i+") th:eq(0)").attr("key");
      }
      if(lis.indexOf(kyjcry_Id) < 0){
        var key_val =  $("#add_kyjcry_tr tr th:eq(0)").attr("key");
        if(key_val == -1){
          $("#add_kyjcry_tr").html("");
        }
          $("#add_kyjcry_tr").append("<tr>"+ 
          "<th class='xk_label02' key='"+kyjcry_id+"'>"+kyjcry_node+"</th>"+
          "<th class='xk_label02' style='width: 18%;'>"+"<input type='radio' name='kyzz'>"+"<span>主勘</span>"+"<input type='radio' name='kyzz'>"+"<span>辅勘</span>"+"</th>"+
          "<th class='xk_label02' style='text-align: center;'>"+"<button onClick='kyjcry_tr_del(this)' class='easyui-linkbutton' type='button' iconCls='icon-cancel'>取消</button>"+
            "<button onClick='kyjcry_changyong(this)' class='easyui-linkbutton' type='button' iconCls='icon-large-smartart'>常用</button>"+
          "</th>"+
         "</tr>");
    $.parser.parse("#kyjcry_table");
        }
  }
 }
});
//设置勘验检查人员常用项
function kyjcry_changyong(obj){
 var chang_val = obj.parentNode.previousSibling.previousSibling.innerText;
 var chang_id = obj.parentNode.previousSibling.previousSibling.attributes.key.value;
 var chang_Id = chang_id.toString();
 var lis = "";
 var li_num = $("#xckyry_ul li").length;
  for(var i = 0;i<li_num;i++){
    lis += $("#xckyry_ul li:eq("+i+")").attr("key");
  }
  if(lis.indexOf(chang_Id) < 0){
     $("#xckyry_ul").append("<li ondblclick='kyjcry_tr_val(this)' style='float:left;margin-right: 7px;' key='"+chang_id+"'>"+
      "<button style='margin-right: 4px;height:15px;' iconCls='icon-cancel' onClick='kyjcry_changyong_del(this)' class='easyui-linkbutton'></button>"+
       "<a href='javascript:;'>"+chang_val+"</a></li>");
       $("#xckyry_ul li").prev().css({'float':'left','margin-right':'7px'});
       $("#xckyry_ul li:last-child").removeAttr('style','');
    $.parser.parse("#xckyry_ul");    
  }
}

//删除勘验检查人员列表项
function kyjcry_tr_del(obj){
 $.messager.confirm("操作提示","确定要删除该行吗？",function (data){
  if(data){
   obj.parentNode.parentNode.remove();
  }
 });
}
//删除勘验检查人员常用项
function kyjcry_changyong_del(obj){
 $.messager.confirm("操作提示","确定要删除该常用项吗？",function (data){
  if(data){
   obj.parentNode.remove();
  }
 });
}
//给勘验检查人员列表赋值
function kyjcry_tr_val(obj){
 var lis = "";
 var tr_num = $("#add_kyjcry_tr").find("tr").length;
 var li_key = obj.attributes.key.value;
 var li_val = obj.innerText;
 var Li_key = li_key.toString(); 
 for(var i = 0;i<tr_num;i++){
  lis += $("#add_kyjcry_tr tr:eq("+i+") th:eq(0)").attr("key");
 }
 if(lis.indexOf(Li_key) < 0){
  var key_val =  $("#add_kyjcry_tr tr th:eq(0)").attr("key");
  if(key_val == -1){
    $("#add_kyjcry_tr").html("");
  }
  $("#add_kyjcry_tr").append("<tr>"+ 
   "<th class='xk_label02' key='"+li_key+"'>"+li_val+"</th>"+
   "<th class='xk_label02' style='width: 18%;'>"+"<input type='radio' name='kyzz'>"+"<span>主勘</span>"+"<input type='radio' name='kyzz'>"+"<span>辅勘</span"+"</th>"+
   "<th class='xk_label02' style='text-align: center;'>"+"<button onClick='kyjcry_tr_del(this)' class='easyui-linkbutton' type='button' iconCls='icon-cancel'>取消</button>"+
   "<button onClick='kyjcry_changyong(this)' class='easyui-linkbutton' type='button' iconCls='icon-large-smartart'>常用</button>"+
   "</th>"+
   "</tr>");
   $.parser.parse("#kyjcry_table");
 }
}
//取消回调
$("#jbxx_cancel").click(function(){
  window.history.go(-1);
});
//警综信息复用弹出框
$("#jzxxfy").click(function(){
   $("#div_jzxxfy").dialog({
    title:"警综信息复用",
    width:"1350px",
    height:"500px",
    closed: false,
       modal:true,
   });
$('#div_jzxxfy').dialog('open'); //打开添加对话框
$('#div_jzxxfy').window('center');//使Dialog居中显示
})
//警综信息复用列表
    datagrid = $("#dataGrid").datagrid({
      title : "接报警现场列表",
      nowrap : false,
      border : false,
      locale : "zh_CN",
      width:'100%',
      iconCls : 'icon-save',
      striped : true,
      collapsible : true,
      url : "json/jzxxfy_table.json",
        method:'get',
      pagination : true,//表示在datagrid设置分页
      //
      //        警综关联 
      columns : [ [ 
      { field : 'jjbh',
        title : '接警编号',
        width : '13%',
        align : 'center' 
      }, {
        field : 'ajbh',
        title : '案件编号',
        width : '13%',
        align : 'center'
      }, {
        field : 'jjr',
        title : '接警人',
        width : '10%',
        align : 'center'
      }, {
        field : 'jjsj',
        title : '接警时间',
        width : '10%',
        align : 'center'
      },{
        field : 'fasj',
        title : '发案时间',
        width : '10%',
        align : 'center'
      } , {
        field : 'ajlb',
        title : '案件类别',
        width : '10%',
        align : 'center'
      }, {
        field : 'fadd',
        title : '发案地点',
        width : '10%',
        align : 'center'
      }, {
        field : 'jyaq',
        title : '简要案情',
        width : '10%',
        align : 'center'
      }, {
        field : 'cz',
        title : '操作',
        width : '10%',
        align : 'center'
      }] ],
    });
          //分页处理
    $("#dataGrid").datagrid("getPager").pagination({
      pageSize : 10,
      pageNumber : 1,
      pageList : [ 10, 20, 30, 40, 50 ],
      beforePageText : '第',//页数文本框前显示的汉字   
      afterPageText : '页    共 {pages} 页',
      displayMsg : '当前显示 {from} - {to} 条记录  共 {total} 条记录',
    });  
var parentWin = window.parent;
var str =  parentWin.show(); 
if(str == "gams"){
  $(".xk_submit").append("<button class='easyui-linkbutton' onclick='submit_jbxx()' type='button' id='jbxx_cancel' iconCls='icon-redo' style='height: 24px;margin-left: 5px;'>提交</button>"+
    "<button class='easyui-linkbutton' type='button' iconCls='icon-tip' style='height: 24px;margin-left: 5px;'>关注现场</button>");
}
function submit_jbxx() {
    window.location.href="jbxx_readonly";
}
</script>
